package com.jinsi.service.impl;

import com.jinsi.mapper.StagingMapper;
import com.jinsi.pojo.ScStudentMonthlyStaging;
import com.jinsi.service.StagingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StagingServiceImpl implements StagingService {
    @Autowired
    private StagingMapper mapper;

    @Override
    public void addStaging(ScStudentMonthlyStaging staging) throws Exception {
        int num = mapper.addStaging(staging);
        if (num == 0){
            throw new Exception();
        }
    }
}
